<!doctype html>
<html>
  <head>
    <meta charset="utf-8"/>
    <link rel=stylesheet type=text/css href="{{ url_for('static', filename='style/style.css') }}"/>
    <link rel=stylesheet type=text/css href="{{ url_for('static', filename='style/theme.css') }}"/>
    {% block head %}{% endblock %}
  </head>
  <body>
    <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div id="id_internal_nav_bar_container" class="container">
                    <a class="brand" href="/"><img id="id_logo" src="" height="35" title="logo" alt="Logo"></a>
                    <div class="nav-collapse">
                        <ul id="id_header_links" class="nav">
                            {% if not session.signed_in %}
                              <li><a style="font-weight: bold;" href="{{ url_for('user.sign_in') }}" id="id_sign_in_link">{{ gettext("Sign In") }}</a></li>
                              <li><a href="{{ url_for('user.sign_up') }}" id="id_sign_up_link">{{ gettext("Sign Up") }}</a></li>
                            {% else %}
                              <li><a href="{{ url_for('user.edit', email=session.email) }}" id="id_edit_user_link">{{ session.username }}</a></li>
                              <li><a href="{{ url_for('user.sign_out') }}" id="id_sign_out_link">{{ gettext("Sign Out") }}</a></li>
                            {% endif %}
                        </ul>
                    </div>
                </div>
            </div>
    </div>
    <div class="top-container" id="id_dummy"></div>
    <div class="container" id="id_body">
      {% block body %}{% endblock %}
    </div>
    <div class="top-container" id="id_dummy"></div>
    <div class="container" id="id_footer">
      <footer id="id_copyright_div">
        <p>Copyright © 2012  Lei Xiao, all rights reserved.</p>
      </footer>
    </div>
  </body>
</html>